#include "SDL.h"



int main(int argc, char** argv)
{
    SDL_Window* window;
    SDL_Renderer* renderer;

    // Initialize SDL.
    if (SDL_Init(SDL_INIT_VIDEO) < 0)
        return 1;

    // Create the window where we willdraw.
    window =SDL_CreateWindow("SDL_RenderClear",
                             SDL_WINDOWPOS_CENTERED,SDL_WINDOWPOS_CENTERED,
                             512, 512,
                             SDL_WINDOW_SHOWN);

    // We must call SDL_CreateRenderer inorder for draw calls to affect this window.
    renderer = SDL_CreateRenderer(window,-1, 0);

    // Select the color for drawing. It isset to red here.
    SDL_SetRenderDrawColor(renderer, 255,0, 0, 255);

    // Clear the entire screen to ourselected color.
    SDL_RenderClear(renderer);

    // Up until now everything was drawnbehind the scenes.
    // This will show the new, red contentsof the window.
    SDL_RenderPresent(renderer);

    // Give us time to see the window.
    SDL_Delay(5000);

    // Always be sure to clean up
    SDL_Quit();

    return 0;
}